﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;
using QuanLyGiaoVuDAL.DTO;

namespace QuanLyGiaoVuService.ReportServices
{
    public class NguoiDungReportService:INguoiDungReportService
    {
        private INguoiDungRepository _nguoiDungRepository;
        public NguoiDungReportService(INguoiDungRepository nguoiDungRepository)
        {
            _nguoiDungRepository = nguoiDungRepository;
        }
        public NguoiDungDTO DangNhapNguoiDung(NguoiDungDTO nguoiDungDTO) 
        {
            return _nguoiDungRepository.DangNhapNguoiDung(nguoiDungDTO);
        }

        public NguoiDungDTO GetNguoiDungByTaiKhoan(string tenTaiKhoan)
        {
            return _nguoiDungRepository.GetNguoiDungByTaiKhoan(tenTaiKhoan);
        }
    }
}
